import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import store from '@/store'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

// 引入uViewUI库
import uView from "@/uni_modules/uview-ui"
Vue.use(uView)
// 引入uView对小程序分享的mixin封装
let mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)

import {
	router,
	RouterMount
} from './router.js' //路径换成自己的
Vue.use(router)

import Util from "util/index.js"
Vue.use(Util)

const app = new Vue({
	store,
	...App
})

require('@/util/request.js')(app)

// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount()
// #endif
// #endif